CDataConnection.cs
Code Type: C# Class
Uses Classes: CDataUtils, StringBuilder, CDataParameterList, CStatus, OracleCommand, OracleParameter, byte[1], OracleConnection
Uses PL/SQL Procedures: PCK_FX_SEC.AuditTransaction, PCK_FX_SEC.SysLogAuditTransaction

Lines of Code: 421

private bool m_bAudit;
        public bool Audit

	 should we audit transactions? 

public CDataConnection()

	 constructor, clears member vars etc... 

public bool AuditTransaction(string strSPName,
                                     CDataParameterList ParamList,
                                     long lTxnStatusCode,
                                     string strTxnStatusComment,
                                     out long lStatusCode,
                                     out string strStatus)

	 audits a transaction using the stored proc name and param list passed in 

public bool SysLogAuditTransaction(string strSPName,
                                           CDataParameterList ParamList,
                                           long lTxnStatusCode,
                                           string strTxnStatusComment,
                                           out long lStatusCode,
                                           out string strStatus)

	syslog audit transaction 

public int ConnectionType

	 connection type property 

public string Status

	 status property 

public long StatusCode

	 status code property 

~CDataConnection()

	 CDataConnection desctructor, try to close and dispose 

public void Close()

	 close the connection 

public OracleConnection GetOracleConnection()

	 get the underlying oracle connection 

public CStatus ExecuteOracleSP(string strSPName,
                                       CDataParameterList ParamList)

	 execute an oracle sp using the name and param list passed in. this version return status information in a CStatus object 

public bool ExecuteOracleSP(string strSPName,
                                    CDataParameterList ParamList,
                                    out long lStatusCode,
                                    out string strStatus)

	 Executes an oracle stored proc using the SP name and parm list passed in. status code of zero means success 

public bool Connect(string strConnectionString, int nConnectionType, bool bAudit)

	 Connect to the database using the connection string and connection type passed in. if bAudit is true then all SP calls will be audited in the FX_AUDIT table 

	

